<?php /* Smarty version Smarty-3.0.7, created on 2014-08-13 23:31:39
         compiled from "E:\project\xampp\htdocs\farmdepot/modules/blockcart/blockcart.tpl" */ ?>
<?php /*%%SmartyHeaderCode:322553eb92eb51ae28-09090554%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '94071c5cbc7e2f81ae1e07734d67e228a218ab9b' => 
    array (
      0 => 'E:\\project\\xampp\\htdocs\\farmdepot/modules/blockcart/blockcart.tpl',
      1 => 1407856305,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '322553eb92eb51ae28-09090554',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<?php if ($_smarty_tpl->getVariable('ajax_allowed')->value){?>
<script type="text/javascript">
var CUSTOMIZE_TEXTFIELD = <?php echo $_smarty_tpl->getVariable('CUSTOMIZE_TEXTFIELD')->value;?>
;
var customizationIdMessage = '<?php echo smartyTranslate(array('s'=>'Customization #','mod'=>'blockcart','js'=>1),$_smarty_tpl);?>
';
var removingLinkText = '<?php echo smartyTranslate(array('s'=>'remove this product from my cart','mod'=>'blockcart','js'=>1),$_smarty_tpl);?>
';
</script>
<?php }?>

<!-- MODULE Block cart -->
<div id="cart_block">

	<div class="block_content">
		<!-- block summary -->
		<div id="cart_block_summary" class="<?php if (isset($_smarty_tpl->getVariable('colapseExpandStatus',null,true,false)->value)&&$_smarty_tpl->getVariable('colapseExpandStatus')->value=='expanded'||!$_smarty_tpl->getVariable('ajax_allowed')->value||!isset($_smarty_tpl->getVariable('colapseExpandStatus',null,true,false)->value)){?>collapsed<?php }else{ ?>expanded<?php }?>">
			<span class="ajax_cart_quantity" <?php if ($_smarty_tpl->getVariable('cart_qties')->value<=0){?>style="display:none;"<?php }?>><?php echo $_smarty_tpl->getVariable('cart_qties')->value;?>
</span>
			<span class="ajax_cart_product_txt_s" <?php if ($_smarty_tpl->getVariable('cart_qties')->value<=1){?>style="display:none"<?php }?>><?php echo smartyTranslate(array('s'=>'products','mod'=>'blockcart'),$_smarty_tpl);?>
</span>
			<span class="ajax_cart_product_txt" <?php if ($_smarty_tpl->getVariable('cart_qties')->value>1){?>style="display:none"<?php }?>><?php echo smartyTranslate(array('s'=>'product','mod'=>'blockcart'),$_smarty_tpl);?>
</span>
			<span class="ajax_cart_total" <?php if ($_smarty_tpl->getVariable('cart_qties')->value<=0){?>style="display:none"<?php }?>><?php if ($_smarty_tpl->getVariable('priceDisplay')->value==1){?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('cart')->value->getOrderTotal(false)),$_smarty_tpl);?>
<?php }else{ ?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('cart')->value->getOrderTotal(true)),$_smarty_tpl);?>
<?php }?></span>
			<span class="ajax_cart_no_product" <?php if ($_smarty_tpl->getVariable('cart_qties')->value!=0){?>style="display:none"<?php }?>><?php echo smartyTranslate(array('s'=>'(empty)','mod'=>'blockcart'),$_smarty_tpl);?>
</span>
		</div>
		<!-- block list of products -->


			<p class="total_quanity"><span class="ajax_cart_quantity"><?php if ($_smarty_tpl->getVariable('cart_qties')->value<=0){?> 0 <?php }else{ ?> <?php echo $_smarty_tpl->getVariable('cart_qties')->value;?>
 <?php }?> </span>  <?php echo smartyTranslate(array('s'=>"sản phẩm trong giỏ hàng"),$_smarty_tpl);?>
 </p>
			<?php if ($_smarty_tpl->getVariable('order_process')->value=='order'){?><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink(($_smarty_tpl->getVariable('order_process')->value).".php",true);?>
" class="link_to_cart" title="<?php echo smartyTranslate(array('s'=>'Cart','mod'=>'blockcart'),$_smarty_tpl);?>
"><img src="<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
/img/cart.png" /></a><?php }?>
			<p id="cart-prices">
				
				<?php if ($_smarty_tpl->getVariable('show_wrapping')->value){?>
					<?php $_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::ONLY_WRAPPING'), null, null);?>
					<span><?php echo smartyTranslate(array('s'=>'Wrapping','mod'=>'blockcart'),$_smarty_tpl);?>
</span>
					<span id="cart_block_wrapping_cost" class="price cart_block_wrapping_cost"><?php if ($_smarty_tpl->getVariable('priceDisplay')->value==1){?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('cart')->value->getOrderTotal(false,$_smarty_tpl->getVariable('blockcart_cart_flag')->value)),$_smarty_tpl);?>
<?php }else{ ?><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('cart')->value->getOrderTotal(true,$_smarty_tpl->getVariable('blockcart_cart_flag')->value)),$_smarty_tpl);?>
<?php }?></span>
					<br/>
				<?php }?>
				<?php if ($_smarty_tpl->getVariable('show_tax')->value&&isset($_smarty_tpl->getVariable('tax_cost',null,true,false)->value)){?>
					<span><?php echo smartyTranslate(array('s'=>'Tax','mod'=>'blockcart'),$_smarty_tpl);?>
</span>
					<span id="cart_block_tax_cost" class="price ajax_cart_tax_cost"><?php echo $_smarty_tpl->getVariable('tax_cost')->value;?>
</span>
					<br/>
				<?php }?>
			
				<span id="cart_block_total" class="price ajax_block_cart_total"><?php echo $_smarty_tpl->getVariable('total')->value;?>
</span>
			</p>
			<p id="cart-buttons">
				<a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink(($_smarty_tpl->getVariable('order_process')->value).".php",true);?>
<?php if ($_smarty_tpl->getVariable('order_process')->value=='order'){?>?step=1<?php }?>" id="button_order_cart" class="exclusive<?php if ($_smarty_tpl->getVariable('order_process')->value=='order-opc'){?>_large<?php }?>" title="<?php echo smartyTranslate(array('s'=>'Check out','mod'=>'blockcart'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Check out','mod'=>'blockcart'),$_smarty_tpl);?>
</a>
			</p>
	</div>
	<ul class="list-link-right">
			<li class="thuc-don"><a href="#">Thực đơn</a></li>
			<li class="bua-an"><a href="#">Bữa ăn<br/>tiêu chuẩn</a></li>
			<li class="san-pham-yeu-thich"><a href="#">Sản phẩm<br/> yêu thích</a></li>
	</ul>
</div>
<!-- /MODULE Block cart -->

